package com.atguigu.rabbit.consumer.listener.direct;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DriectQueue02 {
    @RabbitListener(queues = "direct_queue_02")
    public void directQueue01(Message msg) {
        String s = msg.getBody().toString();
        System.out.println("direct_queue_02 接收到消息：" + msg);
    }
}